import React from 'react';
import {useAuth} from 'context/auth-context'
import {AuthenticatedApp} from 'authenticated-app'
import './App.css';
import {UnauthenticcatedApp} from 'unatuthenticated-app';


function App() {
  const {user} = useAuth()
  return (
    <div className="App">
      {user?<AuthenticatedApp/>:<UnauthenticcatedApp/>}
    </div>
  );
}

export default App;
